.class Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver$1;
.super Ljava/lang/Thread;
.source "ZMDownloadCompleteReceiver.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver;->onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver;

.field final synthetic val$context:Landroid/content/Context;

.field final synthetic val$downId:J

.field final synthetic val$filePath:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver;Ljava/lang/String;Landroid/content/Context;J)V
    .registers 6
    .param p1, "this$0"    # Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver;

    .prologue
    .line 51
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver$1;->this$0:Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver;

    iput-object p2, p0, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver$1;->val$filePath:Ljava/lang/String;

    iput-object p3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver$1;->val$context:Landroid/content/Context;

    iput-wide p4, p0, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver$1;->val$downId:J

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 7

    .prologue
    .line 54
    :try_start_0
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver$1;->val$filePath:Ljava/lang/String;

    iget-object v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver$1;->val$context:Landroid/content/Context;

    invoke-static {v3, v4}, Lcom/zuimeia/sdk/download/utils/AppIOUtil;->getApkPackageName(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 55
    .local v0, "packageName":Ljava/lang/String;
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_2f

    .line 56
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver$1;->val$context:Landroid/content/Context;

    invoke-static {v3}, Lcom/zuimeia/sdk/download/providers/downloads/Downloads;->getAllDownloadsContentURI(Landroid/content/Context;)Landroid/net/Uri;

    move-result-object v3

    iget-wide v4, p0, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver$1;->val$downId:J

    invoke-static {v3, v4, v5}, Landroid/content/ContentUris;->withAppendedId(Landroid/net/Uri;J)Landroid/net/Uri;

    move-result-object v1

    .line 57
    .local v1, "uri":Landroid/net/Uri;
    new-instance v2, Landroid/content/ContentValues;

    invoke-direct {v2}, Landroid/content/ContentValues;-><init>()V

    .line 58
    .local v2, "values":Landroid/content/ContentValues;
    const-string v3, "apk_package_name"

    invoke-virtual {v2, v3, v0}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 59
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadCompleteReceiver$1;->val$context:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v3

    const/4 v4, 0x0

    const/4 v5, 0x0

    invoke-virtual {v3, v1, v2, v4, v5}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
    :try_end_2f
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_2f} :catch_30

    .line 64
    .end local v0    # "packageName":Ljava/lang/String;
    .end local v1    # "uri":Landroid/net/Uri;
    .end local v2    # "values":Landroid/content/ContentValues;
    :cond_2f
    :goto_2f
    return-void

    .line 61
    :catch_30
    move-exception v3

    goto :goto_2f
.end method
